package com.aabte.spring.listener;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

/**
 * @author Daniel
 */
public class MyApplicationListener implements ApplicationListener<ApplicationEvent> {

    /**
     * 当窗口中发布{@link ApplicationEvent}事件后，会回调此方法
     */
    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        System.out.println("event = " + event);
    }
}
